import http from "@/utils/http";
import { bodyToQuery } from "@/utils/helper";
import type { UserInfoType } from "./params";
import type { UserResponseData } from "./res";
import { headerCommon, headerMaster } from "../header";

// 标准写法
enum API {
  GET_USERINFO_API = "/1.1/users/",
}

// example
export const getUserInfoApi = (data: UserInfoType) =>
  http.get<any, UserResponseData>(
    API.GET_USERINFO_API + `/${data.objectId}`,
    { headers: headerCommon }
  );
